package com.ruoyi.web.controller.warning;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.warning.domain.query.RouteQuery;
import com.ruoyi.warning.service.IRouteService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chenhc
 * @since 2025-03-25
 */
@RestController
@RequestMapping("/route")
@Api(tags = "路线", description = "用于处理路线相关操作的控制器")
public class RouteController {
    @Resource
    private IRouteService routeService;
    @ApiOperation("获取路线")
    @GetMapping(value = "/getRoute")
    public R getRoute(RouteQuery query)
    {
        return R.ok(routeService.getRoute(query));
    }
}
